<template>
  <div class="transport">
      <div class="transportfor" v-for="(transport,tran) in transport" :key="tran">
       <div class="transportHand">
        <div class="transportDepart">
          <p class="transportDeparttitle">始发地</p>
          <p class="transportDepartsite">{{transport.depart}}</p>
          <p class="transportDepartdetail">{{transport.departregion}}</p>
        </div>
        <div class="carriage">
            <p class="carriageify">空运</p>
            <img src="../assets/images/go.png">
            <p class="stockpile">需冷藏</p>
        </div>
        <div class="transportDestination">
            <p  class="Destinationtitle">目的地</p>
            <p class="Destinationsite">{{transport.destination}}</p>
            <p class="Destinationdetail">{{transport.destinationregion}}</p>
        </div>
        </div>
        <div class="indetail">
            <span class="infotitle">详</span>
            <span class="info">{{transport.indetail}}</span>
        </div>
        <div class="message">
            <p class="messagetitle">重量</p><p class="messageconten">{{transport.weight}}</p>
            <p class="messagetitle">体积</p><p class="messageconten">{{transport.bulk}}</p>
            <p class="messagetitle">运费</p><p class="messageconten">{{transport.freight}}</p>
            <p class="messagetitle">件数</p><p class="messageconten">{{transport.casesnum}}</p>
        </div>
        <van-button color="#00C657" class="sub">确认接单</van-button>
      </div>
  </div>
</template>

<script>
export default {
    name: "transport",
    props:{
        transport:{
            type: Array,
            default:[]
        },
    },
    data(){
        return{
            
        }
    },
}
</script>

<style scoped>
.transport{
    margin-top: 11px;
}
.transportfor{
    margin-top: 11px;
}
.transportHand{
    display: flex;
}
.carriage img{
    width: 76px;
    height: 5px;
    vertical-align: middle;
    margin-left: 37px;
}
.transportDeparttitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-top: 15px;
    margin-left:67px;
}
.transportDepartsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-left: 56px;
    margin-top: 12px;
}
.transportDepartdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left:67px;
}
.carriageify{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(0,198,87,1);
    margin-left: 67px;
    margin-top: 5px;
}
.stockpile{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(255,98,0,1);
    margin-left: 60px;
}
.Destinationtitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
    margin-top: 15px;
}
.Destinationsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-top: 12px;
    margin-left: 30px;
}
.Destinationdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
}
.indetail{
    text-align: center;
    margin-top: 18px;
}
.infotitle{
    background:rgba(0,198,87,1);
    border-radius:50%;
    color: #fff;
    padding: 3px;

}
.info{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(51,51,51,1);
}
.message{
    display: flex;
    text-align: center;
    margin-top: 25px;
}
.messagetitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(169,174,192,1);
    word-wrap: break-word;
    flex: 1;
}
.messageconten{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(255,98,0,1);
    word-wrap: break-word;
    word-break: normal;
    display: block;
}
.sub{
    text-align: center;
    width: 85%;
    margin: 20px 30px;
}

</style>